﻿<?php

session_name("fancyform");
session_start();


$_SESSION['n1'] = rand(1,20);
$_SESSION['n2'] = rand(1,20);
$_SESSION['expect'] = $_SESSION['n1']+$_SESSION['n2'];


$str='';
if($_SESSION['errStr'])
{
	$str='<div class="error">'.$_SESSION['errStr'].'</div>';
	unset($_SESSION['errStr']);
}

$success='';
if($_SESSION['sent'])
{
	$success='<h1>Hvala. Poruka je poslata!</h1>';
	
	$css='<style type="text/css">#contact-form{display:none;}</style>';
	
	unset($_SESSION['sent']);
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?php include("_inc/naslov.php"); ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/stil.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="js/tb.css" type="text/css" media="screen" />
<link rel="stylesheet" type="text/css" href="js/jqtransformplugin/jqtransform.css" />
<link rel="stylesheet" type="text/css" href="js/formValidator/validationEngine.jquery.css" />
<!--[if lt IE 7]>
        <script type="text/javascript" src="ispravka.js"></script>
<![endif]--> 
<script type="text/javascript" src="js/jq.js"></script>
<script type="text/javascript" src="js/tb.js"></script>
<script type="text/javascript" src="js/jqtransformplugin/jquery.jqtransform.js"></script>
<script type="text/javascript" src="js/formValidator/jquery.validationEngine.js"></script>
<script type="text/javascript" src="js/script.js"></script>
</head>
<body bgcolor="#1666ad">
<table width="1004" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
   <td width="41"><img src="images/spacer.gif" width="41" height="1" border="0" alt="" /></td>
   <td width="9"><img src="images/spacer.gif" width="9" height="1" border="0" alt="" /></td>
   <td width="19"><img src="images/spacer.gif" width="19" height="1" border="0" alt="" /></td>
   <td width="10"><img src="images/spacer.gif" width="10" height="1" border="0" alt="" /></td>
   <td width="209"><img src="images/spacer.gif" width="208" height="1" border="0" alt="" /></td>
   <td width="21"><img src="images/spacer.gif" width="21" height="1" border="0" alt="" /></td>
   <td width="8"><img src="images/spacer.gif" width="8" height="1" border="0" alt="" /></td>
   <td width="2"><img src="images/spacer.gif" width="2" height="1" border="0" alt="" /></td>
   <td width="30"><img src="images/spacer.gif" width="30" height="1" border="0" alt="" /></td>
   <td width="11"><img src="images/spacer.gif" width="11" height="1" border="0" alt="" /></td>
   <td width="143"><img src="images/spacer.gif" width="143" height="1" border="0" alt="" /></td>
   <td width="5"><img src="images/spacer.gif" width="5" height="1" border="0" alt="" /></td>
   <td width="191"><img src="images/spacer.gif" width="191" height="1" border="0" alt="" /></td>
   <td width="42"><img src="images/spacer.gif" width="42" height="1" border="0" alt="" /></td>
   <td width="17"><img src="images/spacer.gif" width="17" height="1" border="0" alt="" /></td>
   <td width="6"><img src="images/spacer.gif" width="6" height="1" border="0" alt="" /></td>
   <td width="7"><img src="images/spacer.gif" width="7" height="1" border="0" alt="" /></td>
   <td width="11"><img src="images/spacer.gif" width="11" height="1" border="0" alt="" /></td>
   <td width="170"><img src="images/spacer.gif" width="169" height="1" border="0" alt="" /></td>
   <td width="7"><img src="images/spacer.gif" width="7" height="1" border="0" alt="" /></td>
   <td width="43"><img src="images/spacer.gif" width="43" height="1" border="0" alt="" /></td>
   <td width="10"><img src="images/spacer.gif" width="1" height="1" border="0" alt="" /></td>
  </tr>

  <tr>
   <td rowspan="9">&nbsp;</td>
   <td colspan="19">&nbsp;</td>
   <td rowspan="9">&nbsp;</td>
   <td><img src="images/spacer.gif" width="1" height="20" border="0" alt="" /></td>
  </tr>
  <tr>
   <td><img name="skolskidnevnikrs_r2_c2" src="images/dv1.png" width="9" height="25" border="0" id="skolskidnevnikrs_r2_c2" alt="" /></td>
   <td colspan="4" rowspan="5" align="left" valign="top" background="images/levopoz2.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
     <tr>
       <td align="left" valign="top"><img src="images/vrh.jpg" width="258" height="25" border="0" /></td>
     </tr>
     <tr>
       <td align="left" valign="top"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
     <tr>
       <td align="left" valign="top"><?php include("_inc/logo.php"); ?></td>
     </tr>
     <tr>
       <td align="right" valign="top"><?php include("_inc/glavnimeni.php"); ?></td>
     </tr>
     <tr>
       <td align="left" valign="top">&nbsp;</td>
     </tr>
     <tr>
       <td align="right" valign="top"><?php include("_inc/korisnickimeni.php"); ?></td>
     </tr>
     <tr>
       <td align="right" valign="top">&nbsp;</td>
     </tr>
     <tr>
       <td align="right" valign="top"><?php include("_inc/statistika.php"); ?></td>
     </tr>
   </table></td>
     </tr>
   </table></td>
<td colspan="11" rowspan="5" align="left" valign="top" background="images/mainzpo.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
     <tr>
       <td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0" background="images/logpoz.jpg">
         <tr>
           <td width="2%" align="left"><img src="images/lp1.jpg" width="8" height="49" /></td>
           <td width="97%" align="center"><?php include("_inc/loginforma.php"); ?></td>
           <td width="1%" align="right"><img src="images/lp2.jpg" width="7" height="49" /></td>
         </tr>
       </table></td>
     </tr>
     <tr>
       <td align="left" valign="top"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
     <tr>
       <td align="left" valign="top"><img src="images/glavnaslika.jpg" width="462" /></td>
     </tr>
     <tr>
       <td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
         <tr>
           <td align="right" valign="top"><img src="images/kinfo.jpg" width="137" height="22" /></td>
         </tr>
         <tr>
           <td align="left" valign="top">&nbsp;</td>
         </tr>
         <tr>
           <td align="left" valign="top"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
             <tr>
               <td align="left" valign="top"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="vestkratko">
                   <tr>
                     <td>&nbsp;</td>
                   </tr>
                   <tr>
                     <td align="center"><table width="96%" border="0" cellspacing="0" cellpadding="0">
                       <tr>
                         <td width="2%" rowspan="5" align="center" valign="top">&nbsp;</td>
                         <td align="left" valign="top">&nbsp;</td>
                         <td align="left" valign="top" class="vestnaslov"><img src="images/it.jpg" width="114" height="16" border="0" /></td>
                       </tr>
                       <tr>
                         <td align="left" valign="top"><img src="images/spacer.gif" alt="" width="1" height="5" /></td>
                         <td align="left" valign="top"><img src="images/spacer.gif" width="1" height="10" /></td>
                       </tr>
                       <tr>
                         <td align="left" valign="top">&nbsp;</td>
                         <td align="left" valign="top"><table width="100%" border="0" align="left" cellpadding="0" cellspacing="0">
                           <tr>
                             <td width="36%" class="tonline">Adresa:</td>
                             <td width="64%">Ulica</td>
                           </tr>
                           <tr>
                             <td class="tonline"><img src="images/spacer.gif" alt="" width="1" height="6" /></td>
                             <td><img src="images/spacer.gif" alt="" width="1" height="6" /></td>
                           </tr>
                           <tr>
                             <td class="tonline">PIB:</td>
                             <td>555555</td>
                           </tr>
                           <tr>
                             <td class="tonline"><img src="images/spacer.gif" alt="" width="1" height="6" /></td>
                             <td><img src="images/spacer.gif" alt="" width="1" height="6" /></td>
                           </tr>
                           <tr>
                             <td class="tonline">Telefon:</td>
                             <td>444444</td>
                           </tr>
                           <tr>
                             <td class="tonline"><img src="images/spacer.gif" alt="" width="1" height="6" /></td>
                             <td><img src="images/spacer.gif" alt="" width="1" height="6" /></td>
                           </tr>
                           <tr>
                             <td class="tonline">E-mail:</td>
                             <td><a href="mailto:info@skolskidnevnik.rs">info@skolskidnevnik.rs</a></td>
                           </tr>
                           <tr>
                             <td>&nbsp;</td>
                             <td>&nbsp;</td>
                           </tr>
                         </table></td>
                       </tr>
                       <tr>
                         <td align="left" valign="top">&nbsp;</td>
                         <td align="left" valign="top">&nbsp;</td>
                       </tr>
                       <tr>
<td width="2%" align="left" valign="top">&nbsp;</td>
                         <td width="96%" align="right" valign="top">&nbsp;</td>
                       </tr>
                     </table></td>
                   </tr>
                   <tr>
                     <td>&nbsp;</td>
                   </tr>
                   <tr>
                     <td>&nbsp;</td>
                   </tr>
                 </table></td>
             </tr>
           </table></td>
         </tr>
         <tr>
           <td align="left" valign="top">&nbsp;</td>
         </tr>
         <tr>
           <td align="right" valign="top"><img src="images/kforma.jpg" width="137" height="22" /></td>
         </tr>
         <tr>
           <td align="left" valign="top">&nbsp;</td>
         </tr>
         <tr>
           <td align="left" valign="top"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
             <tr>
               <td align="left" valign="top"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="vestkratko">
                 <tr>
                   <td>&nbsp;</td>
                 </tr>
                 <tr>
                   <td align="center" valign="top"><table width="96%" border="0" cellspacing="0" cellpadding="0">
                       <tr>
                         <td align="left" valign="top"><form id="contact-form" name="contact-form" method="post" action="submit.php">
      <table width="94%" border="0" align="center" cellpadding="5" cellspacing="0">
        <tr>
          <td width="15%"><label for="name">IME</label></td>
          <td width="70%"><input type="text" class="validate[required,custom[onlyLetter]]" name="name" id="name" value="<?=$_SESSION['post']['name']?>" /></td>
          <td width="15%" id="errOffset">&nbsp;</td>
        </tr>
             <tr>
          <td width="15%"><label for="tel">Telefon</label></td>
          <td width="70%"><input type="text" class="validate[required,custom[onlyNumber]]" name="tel" id="tel" value="<?=$_SESSION['post']['tel']?>" /></td>
          <td width="15%" id="errOffset">&nbsp;</td>
        </tr>
        <tr>
          <td><label for="email">Email</label></td>
          <td><input type="text" class="validate[required,custom[email]]" name="email" id="email" value="<?=$_SESSION['post']['email']?>" /></td>
          <td>&nbsp;</td>
        </tr>
        <tr>
         <td><label for="subject">Kontakt</label></td>
          <td><select name="subject" id="subject">
            <option value="" selected="selected"> - Kako &#382;elite da Vas kontaktiramo -</option>
            <option value="Telefonom">Telefonom</option>
            <option value="E-mailom">E-mailom</option>
          </select>          </td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td width="15%"><label for="tema">tema</label></td>
          <td width="70%"><input type="text" class="validate[required,custom[onlyLetter]]" name="tema" id="tema" value="<?=$_SESSION['post']['tema']?>" /></td>
          <td width="15%" id="errOffset">&nbsp;</td>
        </tr>
        <tr>
          <td valign="top"><label for="message">Poruka</label></td>
          <td><textarea name="message" id="message" class="validate[required]" cols="35" rows="5"><?=$_SESSION['post']['message']?></textarea></td>
          <td valign="top">&nbsp;</td>
        </tr>
        <tr>
          <td><label for="captcha"><?=$_SESSION['n1']?> + <?=$_SESSION['n2']?> =</label></td>
          <td><input type="text" class="validate[required,custom[onlyNumber]]" name="captcha" id="captcha" /> 
          &nbsp;unesite rezultat u polje</td>
          <td valign="top">&nbsp;</td>
        </tr>
        <tr>
          <td valign="top">&nbsp;</td>
          <td colspan="2"><input type="submit" name="button" id="button" value="Pošalji" />
          <input type="reset" name="button2" id="button2" value="Reset" />
          
          <?=$str?>          <img id="loading" src="js/img/ajax-load.gif" width="16" height="16" alt="loading" /></td>
        </tr>
      </table>
      </form><p>
      <?=$success?>
                         </p>
                         <p>&nbsp;</p>
                         <p>* sva polja su obavezna</p>
                           <p>&nbsp;</p></td>
</tr>
</table></td>
                 </tr>
                 <tr>
                   <td>&nbsp;</td>
                 </tr>
                 <tr>
                   <td>&nbsp;</td>
                 </tr>
               </table></td>
             </tr>
           </table></td>
         </tr>
         <tr>
           <td align="left" valign="top">&nbsp;</td>
         </tr>
       </table></td>
     </tr>
   </table></td>
     </tr>
   </table></td>
<td colspan="2" rowspan="5" valign="top" bgcolor="#FFFFFF"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
     <tr>
       <td align="left" valign="top"><?php include("_inc/podrska.php"); ?></td>
     </tr>
     <tr>
       <td align="left" valign="top"><?php include("_inc/skajp.php"); ?></td>
     </tr>
     <tr>
       <td align="left" valign="top"><?php include("_inc/kontakt.php"); ?></td>
     </tr>
     <tr>
       <td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
         <tr>
           <td width="6%" align="left" valign="top"><img src="images/desnosep.jpg" width="18" height="450" /></td>
           <td width="94%" align="left" valign="top"><?php include("_inc/baneri-desno.php"); ?></td>
         </tr>
       </table></td>
     </tr>
     <tr>
       <td align="left" valign="top">&nbsp;</td>
     </tr>
   </table></td>
   <td><img name="skolskidnevnikrs_r2_c20" src="images/lt1.png" width="7" height="25" border="0" id="skolskidnevnikrs_r2_c20" alt="" /></td>
   <td><img src="images/spacer.gif" width="1" height="25" border="0" alt="" /></td>
  </tr>
  <tr>
   <td rowspan="4" background="images/levo.png">&nbsp;</td>
<td rowspan="4" background="images/desno.png">&nbsp;</td>
   <td><img src="images/spacer.gif" width="1" height="36" border="0" alt="" /></td>
  </tr>
  <tr>
<td><img src="images/spacer.gif" width="1" height="95" border="0" alt="" /></td>
  </tr>
  <tr>
<td><img src="images/spacer.gif" width="1" height="82" border="0" alt="" /></td>
  </tr>
  <tr>
<td><img src="images/spacer.gif" width="1" height="700" border="0" alt="" /></td>
  </tr>
  <tr>
   <td>&nbsp;</td>
   <td colspan="4"><img name="skolskidnevnikrs_r7_c3" src="images/dl.png" width="258" height="21" border="0" id="skolskidnevnikrs_r7_c3" alt="" /></td>
   <td><img name="skolskidnevnikrs_r7_c7" src="images/ds1.png" width="8" height="21" border="0" id="skolskidnevnikrs_r7_c7" alt="" /></td>
   <td colspan="10" background="images/ds.png">&nbsp;</td>
<td colspan="2"><img src="images/dd.png" width="180" height="21" /></td>
   <td><img name="skolskidnevnikrs_r7_c20" src="images/dl1.png" width="7" height="21" border="0" id="skolskidnevnikrs_r7_c20" alt="" /></td>
   <td><img src="images/spacer.gif" width="1" height="21" border="0" alt="" /></td>
  </tr>
  <tr>
   <td colspan="2"><img name="skolskidnevnikrs_r8_c2" src="images/f1.png" width="28" height="52" border="0" id="skolskidnevnikrs_r8_c2" alt="" /></td>
   <td colspan="15" align="left" valign="top" background="images/footer.png" class="cp"><?php include("_inc/copy.php"); ?></td>
<td colspan="2"><a href="http://www.progressivemedia.biz" target="_blank"><img name="skolskidnevnikrs_r8_c19" src="images/copy.png" width="176" height="52" border="0" id="skolskidnevnikrs_r8_c19" alt="" /></a></td>
   <td><img src="images/spacer.gif" width="1" height="52" border="0" alt="" /></td>
  </tr>
  <tr>
   <td colspan="19">&nbsp;</td>
   <td><img src="images/spacer.gif" width="1" height="1" border="0" alt="" /></td>
  </tr>
</table>
</body>
</html>
